/**********************************************************************************************************************
 *  COPYRIGHT
 *  -------------------------------------------------------------------------------------------------------------------
 *
 *                This software is copyright protected and proprietary to Vector Informatik GmbH.
 *                Vector Informatik GmbH grants to you only those rights as set out in the license conditions.
 *                All other rights remain with Vector Informatik GmbH.
 *  -------------------------------------------------------------------------------------------------------------------
 *  FILE DESCRIPTION
 *  -------------------------------------------------------------------------------------------------------------------
 *          File:  Rte_CtApDiagManager.h
 *        Config:  D:/Projects/Amp/03_Software/SIP_S32K14X/Application/SipAddon/S32K144_Handle_DEMO/S32K144_Start.dpa
 *     SW-C Type:  CtApDiagManager
 *  Generated at:  Thu Apr 25 17:23:00 2024
 *
 *     Generator:  MICROSAR RTE Generator Version 4.19.0
 *                 RTE Core Version 1.19.0
 *       License:  CBD1800257
 *
 *   Description:  Application header file for SW-C <CtApDiagManager> (Contract Phase)
 *********************************************************************************************************************/

/* double include prevention */
#ifndef _RTE_CTAPDIAGMANAGER_H
# define _RTE_CTAPDIAGMANAGER_H

# ifdef RTE_APPLICATION_HEADER_FILE
#  error Multiple application header files included.
# endif
# define RTE_APPLICATION_HEADER_FILE
# ifndef RTE_PTR2ARRAYBASETYPE_PASSING
#  define RTE_PTR2ARRAYBASETYPE_PASSING
# endif

# ifdef __cplusplus
extern "C"
{
# endif /* __cplusplus */

/* include files */

# include "Rte_CtApDiagManager_Type.h"
# include "Rte_DataHandleType.h"


/**********************************************************************************************************************
 * Component Data Structures and Port Data Structures
 *********************************************************************************************************************/

struct Rte_CDS_CtApDiagManager
{
  /* dummy entry */
  uint8 _dummy;
};

# define RTE_START_SEC_CONST_UNSPECIFIED
# include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */

extern CONSTP2CONST(struct Rte_CDS_CtApDiagManager, RTE_CONST, RTE_CONST) Rte_Inst_CtApDiagManager; /* PRQA S 0850 */ /* MD_MSR_19.8 */

# define RTE_STOP_SEC_CONST_UNSPECIFIED
# include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */

typedef P2CONST(struct Rte_CDS_CtApDiagManager, TYPEDEF, RTE_CONST) Rte_Instance;


# define CtApDiagManager_START_SEC_CODE
# include "CtApDiagManager_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */


/**********************************************************************************************************************
 *
 * Runnable Entity Name: RE_DiagManager_ReadEcuSerialNumber
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <ConditionCheckRead> of PortPrototype <DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier>
 *   - triggered by server invocation for OperationPrototype <ReadData> of PortPrototype <DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType DiagManager_ReadEcuSerialNumber(Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType *ErrorCode)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier_DCM_E_PENDING
 *   RTE_E_DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier_E_NOT_OK
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RE_DiagManager_ReadEcuSerialNumber DiagManager_ReadEcuSerialNumber
FUNC(Std_ReturnType, CtApDiagManager_CODE) DiagManager_ReadEcuSerialNumber(Dcm_OpStatusType OpStatus, P2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_VAR) ErrorCode); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RE_DiagManager_StartAudioModeSet
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <Start> of PortPrototype <RoutineServices_Audio_mode_set>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType DiagManager_StartAudioModeSet(const uint8 *In_New_Data_Object, Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType *ErrorCode)
 *     Argument In_New_Data_Object: uint8* is of type Dcm_Data6ByteType
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_RoutineServices_Audio_mode_set_DCM_E_FORCE_RCRRP
 *   RTE_E_RoutineServices_Audio_mode_set_DCM_E_PENDING
 *   RTE_E_RoutineServices_Audio_mode_set_E_NOT_OK
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RE_DiagManager_StartAudioModeSet DiagManager_StartAudioModeSet
# ifdef RTE_PTR2ARRAYBASETYPE_PASSING
FUNC(Std_ReturnType, CtApDiagManager_CODE) DiagManager_StartAudioModeSet(P2CONST(uint8, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_DATA) In_New_Data_Object, Dcm_OpStatusType OpStatus, P2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_VAR) ErrorCode); /* PRQA S 0850 */ /* MD_MSR_19.8 */
# else
FUNC(Std_ReturnType, CtApDiagManager_CODE) DiagManager_StartAudioModeSet(P2CONST(Dcm_Data6ByteType, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_DATA) In_New_Data_Object, Dcm_OpStatusType OpStatus, P2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_VAR) ErrorCode); /* PRQA S 0850 */ /* MD_MSR_19.8 */
# endif

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RE_DiagManager_StopAudioModeSet
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <Stop> of PortPrototype <RoutineServices_Audio_mode_set>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType DiagManager_StopAudioModeSet(Dcm_OpStatusType OpStatus, Dcm_NegativeResponseCodeType *ErrorCode)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_RoutineServices_Audio_mode_set_DCM_E_FORCE_RCRRP
 *   RTE_E_RoutineServices_Audio_mode_set_DCM_E_PENDING
 *   RTE_E_RoutineServices_Audio_mode_set_E_NOT_OK
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RE_DiagManager_StopAudioModeSet DiagManager_StopAudioModeSet
FUNC(Std_ReturnType, CtApDiagManager_CODE) DiagManager_StopAudioModeSet(Dcm_OpStatusType OpStatus, P2VAR(Dcm_NegativeResponseCodeType, AUTOMATIC, RTE_CTAPDIAGMANAGER_APPL_VAR) ErrorCode); /* PRQA S 0850 */ /* MD_MSR_19.8 */

# define CtApDiagManager_STOP_SEC_CODE
# include "CtApDiagManager_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */


/**********************************************************************************************************************
 * Application errors
 *********************************************************************************************************************/

# define RTE_E_DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier_DCM_E_PENDING (10U)

# define RTE_E_DataServices_DID_0xF18C_ECUSerialNumberDataIdentifier_E_NOT_OK (1U)

# define RTE_E_RoutineServices_Audio_mode_set_DCM_E_FORCE_RCRRP (12U)

# define RTE_E_RoutineServices_Audio_mode_set_DCM_E_PENDING (10U)

# define RTE_E_RoutineServices_Audio_mode_set_E_NOT_OK (1U)

# ifdef __cplusplus
} /* extern "C" */
# endif /* __cplusplus */

#endif /* _RTE_CTAPDIAGMANAGER_H */
